const basePath = '/homeWork'
import { get, post } from '@/axios'
export function list(params, callback) {
	get(basePath + '/list', params, callback)
}
export function add(params, callback, formObj) {
	post(basePath + '/add', params, callback, formObj.value)
}
export function update(params, callback, formObj) {
	post(basePath + '/update', params, callback, formObj.value)
}
export function del(id, active, callback) {
	post(basePath + '/del', { id, active }, callback)
}
export function getInfo(id, callback) {
	get(basePath + `/getInfo/${id}`, {}, callback)
}